Candidly unburdening oneself to G-d evokes Divine consolation
When a person does hisbodidus and expresses his words and his pain before Hashem Yisburach, and confesses and regrets the severity of the defects he impaired, then the Shechina (Divine Presence) directly across him expresses before him Her words and pain, for every single infraction and infringement that he violated in his neshama (soul), he inflicted by Her, so to speak, and She consoles him, that he should seek contrivances to rectify all the damages.
(Likutay Moharan, torah 259; Outpouring of the Soul 66)